package ru.gerunn.study.patterns.singleton;

public class CommonSynchronizedSingleton {

	private static CommonSynchronizedSingleton instance;

	private CommonSynchronizedSingleton() {
	}

	public static CommonSynchronizedSingleton getInstance() {
		if (instance == null) {
			synchronized (CommonSynchronizedSingleton.class) {
				if (instance == null) {
					instance = new CommonSynchronizedSingleton();
				}
			}
		}
		return instance;
	}

}
